<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../print.css" type="text/css" media="print">
<meta content="ToggleController,camo.controllers.ToggleController,_currentSelection,_instanceIDIndex,_instanceNameIndex,currentSelection,addListeners,indexButtons,init,onEventRecieved,registerButtonInstance,removeListeners,reset,toggleButtonByID,toggleButtonByName" name="keywords">
<title>camo.controllers.ToggleController</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'ToggleController - My Application';
				var baseRef = '../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../all-classes.html')" href="../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../all-classes.html')" href="../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../index-list.html')" href="../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../index.html?camo/controllers/ToggleController.html&amp;camo/controllers/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;ToggleController</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class ToggleController"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">camo.controllers</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class ToggleController</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">ToggleController <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../images/inherit-arrow.gif"> <a href="AbstractController.html">AbstractController</a> <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
</table>
<p></p>
<p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<div class="showHideLinks">
<div class="hideInheritedProperty" id="hideInheritedProperty">
<a onclick="javascript:setInheritedVisible(false,'Property');" href="#propertySummary" class="showHideLink"><img src="../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Public Properties</a>
</div>
<div class="showInheritedProperty" id="showInheritedProperty">
<a onclick="javascript:setInheritedVisible(true,'Property');" href="#propertySummary" class="showHideLink"><img src="../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Public Properties</a>
</div>
</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="hideInheritedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="AbstractController.html#active">active</a> : Boolean<div class="summaryTableDescription">
   <p>Toggles active state of the Controller.</div>
</td><td class="summaryTableOwnerCol"><a href="AbstractController.html">AbstractController</a></td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#currentSelection">currentSelection</a> : <a href="../views/components/buttons/ToggleButton.html">ToggleButton</a>
<div class="summaryTableDescription">[read-only]
   <p>Returns the current selected ToggleButton.</div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
</table>
</div>
<a name="protectedPropertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Properties</div>
<div class="showHideLinks">
<div class="hideInheritedProtectedProperty" id="hideInheritedProtectedProperty">
<a onclick="javascript:setInheritedVisible(false,'ProtectedProperty');" href="#protectedPropertySummary" class="showHideLink"><img src="../../images/expanded.gif" class="showHideLinkImage"> Hide Inherited Protected Properties</a>
</div>
<div class="showInheritedProtectedProperty" id="showInheritedProtectedProperty">
<a onclick="javascript:setInheritedVisible(true,'ProtectedProperty');" href="#protectedPropertySummary" class="showHideLink"><img src="../../images/collapsed.gif" class="showHideLinkImage"> Show Inherited Protected Properties</a>
</div>
</div>
<table id="summaryTableProtectedProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_currentSelection">_currentSelection</a> : <a href="../views/components/buttons/ToggleButton.html">ToggleButton</a>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_instanceIDIndex">_instanceIDIndex</a> : Array<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#_instanceNameIndex">_instanceNameIndex</a> : Array<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
<tr class="hideInheritedProtectedProperty">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol"><img class="inheritedSummaryImage" title="Inherited" alt="Inherited" src="../../images/inheritedSummary.gif"></td><td class="summaryTableSignatureCol"><a class="signatureLink" href="AbstractController.html#_observableComponent">_observableComponent</a> : <a href="../views/components/AbstractComponent.html">AbstractComponent</a>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol"><a href="AbstractController.html">AbstractController</a></td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ToggleController()">ToggleController</a>(target:<a href="../views/components/AbstractComponent.html">AbstractComponent</a>)</div>
<div class="summaryTableDescription">
   <p>The toggle controller listens for Toggle Change events, normally
   reserved for ToggleButtons and any class that extends it.</div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#reset()">reset</a>():void</div>
<div class="summaryTableDescription">
   <p>This takes any currently selected Button and resets it cleaning the 
   controllers record of the active selection.</p>
   </div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#toggleButtonByID()">toggleButtonByID</a>(id:Number):void</div>
<div class="summaryTableDescription">
   <p>This allows you to activate a button based on its ID number obtained when
   indexing the ToggleButtons present in the observable component's instance
   array.</p>
   </div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#toggleButtonByName()">toggleButtonByName</a>(name:String):void</div>
<div class="summaryTableDescription">
   <p>This allows you to activate a button based on its name id obtained when
   indexing the ToggleButtons present in the observable component's instance
   array.</p>
   </div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
</table>
</div>
<a name="protectedMethodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Methods</div>
<table id="summaryTableProtectedMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#addListeners()">addListeners</a>(target:EventDispatcher):void</div>
<div class="summaryTableDescription">
   <p> Overrides the AbstractController to listen for Toggle Change events
   normally dispatched by ToggleButtons.</p>
   </div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#indexButtons()">indexButtons</a>():void</div>
<div class="summaryTableDescription">
   <p>Loops through instance of observable component and creates a look up
   table for all instances that are of type ToggleButton.</div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#init()">init</a>(target:<a href="../views/components/AbstractComponent.html">AbstractComponent</a>):void</div>
<div class="summaryTableDescription">
   <p>Passes up the target to the AbstractConstructor and begins to Index the
   Buttons.</p>
   
   </div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onEventRecieved()">onEventRecieved</a>(event:<a href="../events/ComponentEvent.html">ComponentEvent</a>):void</div>
<div class="summaryTableDescription">
   <p>Triggered when an Event has been received.</div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#registerButtonInstance()">registerButtonInstance</a>(id:String, button:<a href="../views/display/AbstractDisplay.html">AbstractDisplay</a>):void</div>
<div class="summaryTableDescription">
   <p>This registers an item by an ID and its instance.</div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#removeListeners()">removeListeners</a>(target:EventDispatcher):void</div>
<div class="summaryTableDescription">
   <p> Overrides the AbstractController to remove any listenrs for Toggle
   Change events normally dispatched by ToggleButtons.</p>
   </div>
</td><td class="summaryTableOwnerCol">ToggleController</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="_currentSelection"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_currentSelection</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _currentSelection:<a href="../views/components/buttons/ToggleButton.html">ToggleButton</a></code>
</div>
<a name="currentSelection"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">currentSelection</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>currentSelection:<a href="../views/components/buttons/ToggleButton.html">ToggleButton</a></code>&nbsp;&nbsp;[read-only]<p>
   </p><p>Returns the current selected ToggleButton. Use this to check if a
   toggle has been activated and to get direct access to the actively
   stored selection.</p>
   
   <span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get currentSelection():<a href="../views/components/buttons/ToggleButton.html">ToggleButton</a></code>
<br>
</div>
<a name="_instanceIDIndex"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_instanceIDIndex</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _instanceIDIndex:Array</code>
</div>
<a name="_instanceNameIndex"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">_instanceNameIndex</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected var _instanceNameIndex:Array</code>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="ToggleController()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ToggleController</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function ToggleController(target:<a href="../views/components/AbstractComponent.html">AbstractComponent</a>)</code><p>
   </p><p>The toggle controller listens for Toggle Change events, normally
   reserved for ToggleButtons and any class that extends it. This controller
   simplifies the logic for dealing with listening for a click, capturing
   the newly selected instance, reactivating the last selection, and
   deactivating the new selection.</p>
   
   <p>Use this controller for Tabs, Toggle switches, combo boxes, or anything
   that requires the need to track the last and current selected states of
   a ToggleButton.</p>
   
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">target</span>:<a href="../views/components/AbstractComponent.html">AbstractComponent</a></code> &mdash; AbstractComponent to observe.
   </td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="addListeners()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">addListeners</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>protected override function addListeners(target:EventDispatcher):void</code><p>
   </p><p> Overrides the AbstractController to listen for Toggle Change events
   normally dispatched by ToggleButtons.</p>
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">target</span>:EventDispatcher</code></td>
</tr>
</table>
</div>
<a name="indexButtons()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">indexButtons</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function indexButtons():void</code><p>
   </p><p>Loops through instance of observable component and creates a look up
   table for all instances that are of type ToggleButton. This allows you
   to manipulate the ToggleButton instances externally. Say you want the 
   controller to automatically toggle instance ID 3 or 1 in cases when you
   need to save then recover state.</p>
   </div>
<a name="init()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">init</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected override function init(target:<a href="../views/components/AbstractComponent.html">AbstractComponent</a>):void</code><p>
   </p><p>Passes up the target to the AbstractConstructor and begins to Index the
   Buttons.</p>
   
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">target</span>:<a href="../views/components/AbstractComponent.html">AbstractComponent</a></code> &mdash; AbstractComponent supplied by the constructor.
   </td>
</tr>
</table>
</div>
<a name="onEventRecieved()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onEventRecieved</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected override function onEventRecieved(event:<a href="../events/ComponentEvent.html">ComponentEvent</a>):void</code><p>
   </p><p>Triggered when an Event has been received. This overrides the 
   AbstractController to handle getting a reference to the ToggleButton that
   fired the event, deactivating the last selected one, then setting the 
   new selection in the currentSelection variable.</p>
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">event</span>:<a href="../events/ComponentEvent.html">ComponentEvent</a></code></td>
</tr>
</table>
</div>
<a name="registerButtonInstance()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">registerButtonInstance</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function registerButtonInstance(id:String, button:<a href="../views/display/AbstractDisplay.html">AbstractDisplay</a>):void</code><p>
   </p><p>This registers an item by an ID and its instance. This allows direct 
   control of any supported instance based on its ID.</p>
   
   <p>This populates two instance arrays, one for toggleButtonID when
   supplying an ID number and the other for toggleButtonByName to activate
   a button by its name ID.</p>
   
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">id</span>:String</code> &mdash; Reference used to look up registered instances.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">button</span>:<a href="../views/display/AbstractDisplay.html">AbstractDisplay</a></code> &mdash; AbstractDisplay instance.
   </td>
</tr>
</table>
</div>
<a name="removeListeners()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">removeListeners</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected override function removeListeners(target:EventDispatcher):void</code><p>
   </p><p> Overrides the AbstractController to remove any listenrs for Toggle
   Change events normally dispatched by ToggleButtons.</p>
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">target</span>:EventDispatcher</code></td>
</tr>
</table>
</div>
<a name="reset()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">reset</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function reset():void</code><p>
   </p><p>This takes any currently selected Button and resets it cleaning the 
   controllers record of the active selection.</p>
   </div>
<a name="toggleButtonByID()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">toggleButtonByID</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function toggleButtonByID(id:Number):void</code><p>
   </p><p>This allows you to activate a button based on its ID number obtained when
   indexing the ToggleButtons present in the observable component's instance
   array.</p>
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">id</span>:Number</code></td>
</tr>
</table>
</div>
<a name="toggleButtonByName()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">toggleButtonByName</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function toggleButtonByName(name:String):void</code><p>
   </p><p>This allows you to activate a button based on its name id obtained when
   indexing the ToggleButtons present in the observable component's instance
   array.</p>
   <span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">name</span>:String</code></td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
